package cn.mesmile.flow.modules.processtask.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.flowable.identitylink.api.IdentityLinkInfo;
import org.flowable.task.api.Task;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author zb
 * @date 2020/12/7 16:08
 * @Description
 */
@NoArgsConstructor
@Data
public class QueryTaskVO {

    private String taskId;

    private String taskName;

    private Map<String,Object> variables;

    public QueryTaskVO(Task task) {
        taskId = task.getId();
        taskName = task.getName();
        // 任务中的变量值
        variables = task.getProcessVariables();
        String assignee = task.getAssignee();
        String category = task.getCategory();
        Date claimTime = task.getClaimTime();
        String tenantId = task.getTenantId();
    }


}
